
/**
 *
 * @properties={typeid:24,uuid:"2FE74BA0-89FC-4A4F-939B-74F6C40B5F50"}
 */
function borrar() {
	var $resp = globals.DIALOGS.showQuestionDialog(i18n.getI18NMessage('hoteleria.confirmar'),i18n.getI18NMessage('hoteleria.pregunta.borrarReserva'),i18n.getI18NMessage('hoteleria.pregunta.si'),i18n.getI18NMessage('hoteleria.pregunta.no'))
	if ($resp == i18n.getI18NMessage('hoteleria.pregunta.si'))
	{
		globals.gHabFaltantes++
		forms.reserva_2.elements.tab_resultados.setTabEnabledAt(tab,true)
		forms.reserva_2.elements.tab_resultados.tabIndex = tab
		controller.deleteRecord()
		globals.show('reserva_2')
	}
}

/**
 * Callback method for when form is shown.
 *
 * @param {Boolean} firstShow form is shown first time after load
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"7AAAC792-CC16-4636-8974-233353B54D37"}
 */
function onShow(firstShow, event) {
	if (ghotel_to_hoteles.edad_menor == 0)
	{
		elements.grp_menores.visible = false
	}
	else
	{
		elements.grp_menores.visible = true
	}
}
